package think.in.spring.bean.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Scope;
import think.in.spring.ioc.overview.domain.User;

@Configuration
public class BeanInstanceConfig {

    @Bean("staticFactoryMethod")
    public User staticFactoryMethod() {
        User user = new User();
        user.setName("静态工厂方法");
        return user;
    }
}
